package com.vframework.system.org.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.vframework.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 组织机构表
 * </p>
 *
 * @author codeGenerator
 * @since 2020-10-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_org")
@ApiModel(value="SysOrg对象", description="组织机构表")
public class SysOrg extends BaseEntity<SysOrg> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "组织机构名称")
    @TableField("org_name")
    private String orgName;

    @ApiModelProperty(value = "父级id")
    @TableField("p_id")
    private Integer pId;

    @ApiModelProperty(value = "所属城市代码")
    @TableField("city_code")
    private Integer cityCode;

    @ApiModelProperty(value = "级别")
    @TableField("level")
    private Integer level;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
